.class Lcom/TwinBlade/PicturePassword/ah;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/HomeChooser;


# direct methods
.method constructor <init>(Lcom/TwinBlade/PicturePassword/HomeChooser;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/ah;->a:Lcom/TwinBlade/PicturePassword/HomeChooser;

    .line 96
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 99
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ah;->a:Lcom/TwinBlade/PicturePassword/HomeChooser;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/HomeChooser;->a(Lcom/TwinBlade/PicturePassword/HomeChooser;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 100
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "HomeLauncher"

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ah;->a:Lcom/TwinBlade/PicturePassword/HomeChooser;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/HomeChooser;->b(Lcom/TwinBlade/PicturePassword/HomeChooser;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 101
    return-void
.end method
